package com.jiang.controller;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiang.entity.SStudent;
import com.jiang.service.SStudentService;
import com.jiang.service.impl.SStudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author anonymous
 * @since 2021-08-17
 */
@RestController
@RequestMapping("/s-student")
public class SStudentController {

    @Resource
    public SStudentService studentService;

    @GetMapping("/user")
    public String test(){

        SStudent res = studentService.getById(2);
        BaseMapper<SStudent> s1 = studentService.getBaseMapper();
        System.out.println(s1.toString());
        return res.toString();

    }

}
